package com.miplus.ccrm.core.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.yulichang.base.MPJBaseMapper;
import com.miplus.ccrm.core.controller.vo.credit.LoanInvoiceListResVo;
import com.miplus.ccrm.core.mapper.model.LoanInvoiceDeductionBatchVo;
import com.miplus.ccrm.core.pojo.IouLoanInvoiceInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author wangzl
* @description 针对表【iou_loan_invoice_info(借据表(业务表))】的数据库操作Mapper
* @createDate 2024-11-07 11:23:24
* @Entity com.miplus.ccrm.core.pojo.IouLoanInvoiceInfo
*/
@Mapper
public interface IouLoanInvoiceInfoMapper extends MPJBaseMapper<IouLoanInvoiceInfo> {

    IPage<LoanInvoiceListResVo> LoanInvoicePage(Page<Object> objectPage,
                                                @Param("creditcaseid") Long creditcaseid,
                                                @Param("loanInvoiceStatus") String loanInvoiceStatus);

    IouLoanInvoiceInfo getDblNo(@Param("loanInvoiceId") String loanInvoiceId);

    List<String> getInvoiceGrp(@Param("creditcaseid") Long creditcaseid);

    List<LoanInvoiceDeductionBatchVo> getLInvoiceDeductionList(@Param("list") List<Long> credIdList);
}




